package com.ruoyi.system.domain;
import java.util.Date;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;

import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 卡牌问答的案例对象 t_divine_case
 * 
 * @author DEREK
 * @date 2023-10-12
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("t_divine_case")
public class DivineCase
{

    /** 主键ID */
	 @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 类型 1=卡牌问答 2=骰子问答 3=星盘问答 4=六爻 */
    @Excel(name = "类型 1=卡牌问答 2=骰子问答 3=星盘问答 4=六爻")
    private Long type;

    /** 发布者昵称 */
    @Excel(name = "发布者昵称")
    private String nickName;

    /** 头像 */
    @Excel(name = "头像")
    private String headPic;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 图片 多张用逗号分割 */
    @Excel(name = "图片 多张用逗号分割")
    private String img;

    /** 回答者昵称 */
    @Excel(name = "回答者昵称")
    private String toNickName;

    /** 回答者头像 */
    @Excel(name = "回答者头像")
    private String toHeadPic;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date toTime;

    /** 语音地址 */
    @Excel(name = "语音地址")
    private String voice;

    private String createBy;
    private Date createTime;

    @TableField(exist = false)
	private List<String> simpleSpectrum1;
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("nickName", getNickName())
            .append("headPic", getHeadPic())
            .append("time", getTime())
            .append("title", getTitle())
            .append("img", getImg())
            .append("toNickName", getToNickName())
            .append("toHeadPic", getToHeadPic())
            .append("toTime", getToTime())
            .append("voice", getVoice())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
